package com.leilingmin.www.controller;

import com.leilingmin.www.config.LeilingminInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
@Controller
public class BaseController {
    @Autowired
    private LeilingminInfo leilingminInfo;

    @ModelAttribute
    public void init(Model model) {
        // 此处编写需要进行初始化的代码
        model.addAttribute("leilingminInfo", leilingminInfo);
    }
}
